package com.huanletao.spring.ioc;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;

/**
 * description: Config <br>
 * date: 2022/6/28 11:08 <br>
 * author: 踏雪无痕 <br>
 * version: 1.0 <br>
 */
@ComponentScan(value = "com.huanletao.spring.ioc", useDefaultFilters = true,
        includeFilters = @ComponentScan.Filter(type = FilterType.ANNOTATION,
                value = MeComponent.class))
public class Config implements InitializingBean {

    @Autowired
    private PersonDao personDao;

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("personDao = " + personDao);
    }
}
